#!/bin/bash
echo "Is it morning? (yes or no):"
read timeOfDay
if [ $timeOfDay = "yes" ];then
    echo "Good morning!"
elif [ $timeOfDay = "no" ];then
    echo "Good afternoon!"
else 
    echo "Wrong answer!"
    exit 1
fi
exit 0